import request from '@/utils/request'

// 查询我的超话列表
export function listWords() {
  return request({
    url: '/weibo/superTopic/myList',
    method: 'get',
  })
}

// 单个超话签到
export function signTopic(topicId, topicName) {
  return request({
    url: '/weibo/superTopic/sign',
    method: 'get',
    params: {
      topicId,
      topicName
    }
  })
}

// 批量签到所有超话
export function batchSign() {
  return request({
    url: '/weibo/superTopic/batchSign',
    method: 'get'
  })
}

// 验证微博Cookie是否有效
export function verifyCookie() {
  return request({
    url: '/weibo/superTopic/verify',
    method: 'get'
  })
}

// 设置微博Cookie
export function setCookie(cookie) {
  return request({
    url: '/weibo/superTopic/setCookie',
    method: 'get',
    params: { cookie }
  })
}
